import request from '@/utils/request'
export function fetchList(params) {
return request({
url: '/shop/shopExpense/list',
method: 'get',
params: params
})
}
export function createShopExpense(data) {
return request({
url: '/shop/shopExpense/create',
method: 'post',
data: data
})
}

export function deleteShopExpense(id) {
return request({
url: '/shop/shopExpense/delete/' + id,
method: 'get',
})
}

export function getShopExpense(id) {
return request({
url: '/shop/shopExpense/' + id,
method: 'get',
})
}

export function updateShopExpense(id, data) {
return request({
url: '/shop/shopExpense/update/' + id,
method: 'post',
data: data
})
}

export function getShopExpenseByMonth() {
    return request({
        url: '/shop/shopExpense/getShopExpenseByMonth',
        method: 'get'
    })
}
export function getShopExpenseByCate() {
    return request({
        url: '/shop/shopExpense/getShopExpenseByCate',
        method: 'get'
    })
}